package com.czk.originfeign.api;

import com.czk.originfeign.annotation.FeignApi;
import feign.Headers;
import feign.RequestLine;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/8/10 18:01
 */
@FeignApi(serviceUrl = "http://localhost:8083/czk")
@Configuration
public interface RestApi {
    /**
     * 远程接口
     *
     * @return
     */
    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @RequestLine("GET /user11")
    String getUser();
}

